package com.plan.dao.mapper.card;

import com.plan.controller.card.response.TaskListVO;
import com.plan.entity.card.Task;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TaskRepositoryMapper {

    int insert(Task task);

    List<TaskListVO> getList(int level, Long teamId);

    Task getOneById(Long id);

    List<Task> getListByIds(@Param("taskIdList") List<Long> taskIdList);

    List<Task> getAfterSortTask(Long teamId, Integer sort);

    void updateSort(Long id, Integer sort);

    void delete(Long id);

    Integer getMaxSort(Long teamId);
}
